package cn.shanke.torrentmanagerserver.btclient.model;

import lombok.Data;
import nl.stil4m.transmission.api.domain.SessionInfo;

@Data
public class TmSessionInfo {
    private String version;
    private String downloadDir;

    public static TmSessionInfo wrapTransmission(SessionInfo info) {
        TmSessionInfo tmSessionInfo = new TmSessionInfo();
        if (info != null) {
            tmSessionInfo.version = info.getVersion();
            tmSessionInfo.downloadDir = info.getDownloadDir();
        }
        return tmSessionInfo;
    }
}
